import request from '@/utils/request'

// 查询流程进度配置列表
export function listConfigure(query) {
  return request({
    url: '/processSchedule/configure/list',
    method: 'get',
    params: query
  })
}

// 查询流程进度配置详细
export function getConfigure(id) {
  return request({
    url: '/processSchedule/configure/' + id,
    method: 'get'
  })
}

// 获取流程进度配置详细信息
export function getConfigureByBusinessKey(businessKey) {
  return request({
    url: '/processSchedule/configure/getByBusinessKey/' + businessKey,
    method: 'get'
  })
}

// 新增流程进度配置
export function addConfigure(data) {
  return request({
    url: '/processSchedule/configure',
    method: 'post',
    data: data
  })
}

// 修改流程进度配置
export function updateConfigure(data) {
  return request({
    url: '/processSchedule/configure',
    method: 'put',
    data: data
  })
}

// 删除流程进度配置
export function delConfigure(id) {
  return request({
    url: '/processSchedule/configure/' + id,
    method: 'delete'
  })
}

// 导出流程进度配置
export function exportConfigure(query) {
  return request({
    url: '/processSchedule/configure/export',
    method: 'get',
    params: query
  })
}
